package net.zhengxinyun.performance.mapper.Indicators;

import net.zhengxinyun.performance.entity.CountryUnitIndicatorsEntity;
import net.zhengxinyun.performance.filter.CountryUnitIndicatorsFilter;
import net.zhengxinyun.performance.filter.CountryUnitScoreFilter;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface CountryUnitIndicatorsEntityMapper {

    int deleteByPrimaryKey(Long id);


    int insert(CountryUnitIndicatorsEntity record);


    int insertSelective(CountryUnitIndicatorsEntity record);


    CountryUnitIndicatorsEntity selectByPrimaryKey(Long id);


    int updateByPrimaryKeySelective(CountryUnitIndicatorsEntity record);

    int updateByPrimaryKey(CountryUnitIndicatorsEntity record);

    List<CountryUnitIndicatorsEntity> query(CountryUnitIndicatorsFilter countryUnitIndicatorsFilter);

    Integer queryForCount(CountryUnitIndicatorsFilter countryUnitIndicatorsFilter);

    String getIdByIndexName(Map<String, Object> map);

    List<CountryUnitIndicatorsEntity> queryCountryUnitScore(CountryUnitScoreFilter countryUnitScoreFilter);

    Integer countCountryUnitScore(CountryUnitScoreFilter countryUnitScoreFilter);

    List<CountryUnitIndicatorsEntity> queryScoreList(CountryUnitIndicatorsFilter countryUnitIndicatorsFilter);

    Integer queryForCountIndex(CountryUnitIndicatorsFilter countryUnitIndicatorsFilter);
}